package com.maltys.templatepattern;

public abstract class AbstractJob {
    public String jobName;

    public void calculate() {
        long start = System.currentTimeMillis();
        doJob();
        long end = System.currentTimeMillis();
        System.out.println(jobName + " 执行时间：" + (end - start));
    }

    public abstract void doJob();
}
